package com.isoft.demo.service.impl;

import com.isoft.demo.dao.PermissionDao;
import com.isoft.demo.entity.Permission;
import com.isoft.demo.service.PermissionService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @version 1.0
 * @ClassName:PermissionServiceImpl
 * @Description: TODO
 * @Author guowei
 * @Date:2021/7/6 14:13
 */
@Service
public class PermissionServiceImpl implements PermissionService {
    @Resource
    private PermissionDao dao;
    @Override
    public List<Permission> searchByLoginid(int customerid) {
        return dao.selectByLoginId(customerid);
    }

    @Override
    public List<Permission> searchByparentid(int parentid) {
        return dao.selectByParentid(parentid);
    }
}
